package com.ghf.dp6;

public class Main {

    public static void main(String[] args) throws Exception{
        Resume a = new Resume("大鸟");
        a.setPersonalInfo("男", "29");
        a.setWorkExperience("1998-2000", "XX公司");

        //对象调用 clone() 方法时，会返回一个新的对象
        Resume b = (Resume) a.clone();
        b.setWorkExperience("1998-2006", "YY公司");

        a.display();
        b.display();
    }
}
